<%@ page language="java" contentType="text/html; charset=UTF-8"  
    pageEncoding="UTF-8"%>  
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>  
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()

            + path + "/";
    String serverPath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort();
%>
<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript">  
    function showErrors() {  
        var err_el = document.getElementById('errors');  
        if (err_el.style.display == 'none') {  
            err_el.style.display = '';  
        } else {  
            err_el.style.display = 'none';  
        }  
    }  
</script> 
 <!-- Bootstrap -->
    <link <% out.print("href=\""+ basePath + "css/bootstrap.min.css\"");%> rel="stylesheet">
    <link <% out.print("href=\""+ basePath + "css/bootstrap-theme.min.css\"");%> rel="stylesheet">
    <link <% out.print("href=\""+ basePath + "css/custom.css\"");%> rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script <%out.print("src=\""+ basePath+"js/html5shiv.min.js\"");%>></script>
      <script <%out.print("src=\""+basePath+"js/1.4.2/respond.min.js\"");%>></script>
    <![endif]--> 
</head>  
<body>  
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
        <button type="button" class="btn btn-default btn-lg">
          <span class="glyphicon glyphicon-tags"></span>
        </button>
        </div>
        <div class="navbar-collapse collapse">
           <form class="navbar-form navbar-right"  role="form">
            <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">            
                        欢迎<c:out value="${username}" />登录 <span class="caret"></span>            
           </button>
            <ul class="dropdown-menu" role="menu">
                <li><a href="#">个人中心</a></li>
           </ul>
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </div>
	 <div class="jumbotron">
      <div class="container">
        <h1>出错了</h1>
        <p>${exception.message }，您可以  
    <a href="javascript:showErrors();">查看详情</a>或直接  
    <a href="index.do">返回</a>。  
    <div style="display: none; color: red;" id="errors">  
        <c:forEach items="${exception.stackTrace }" var="e">  
    ${e }<br />  
        </c:forEach>  
    </div>  </p>
      </div>
    </div>
    
	
  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script <%out.print("src=\""+ basePath+"js/jquery.min.js\"");%>></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script <%out.print("src=\""+basePath+"js/bootstrap.min.js\"");%>"></script> 
</body>  
</html>  